<%--
  添加字典分类模板
  User: guoyao
  Date: 15-12-24
  Time: 下午2:55
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/tags/taglibs.jsp" %>
<html>
    <head>
        <title>修改字典分类信息</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <div class="easyui-layout" data-options="fit:true">
            <form id="submitForm" method="post" >
                <div data-options="region:'center',border:false" style="padding:5px;background:#fff;border:1px solid #ccc;">
                    <table class="doc-table">
                        <tbody>
                        <tr>
                            <th width="25%"></th>
                            <th width="75%"></th>
                        </tr>
                            <tr>
                                <td class="labelTd">ID:</td>
                                <td>
                                    <input name="classId" type="hidden" class="easyui-validatebox" required="true" value="${codeClassInfo.classId}" >
                                    ${codeClassInfo.classId}
                                </td>
                            </tr>
                            <tr>
                                <td class="labelTd">名称:</td>
                                <td>
                                    <input name="className" class="easyui-validatebox" value="${codeClassInfo.className}" data-options="
                                        required: 'true',
                                        validType: 'chinese'
                                    ">
                                </td>
                            </tr>
                            <tr>
                                <td class="labelTd">简介:</td>
                                <td>
                                    <input name="description" class="easyui-validatebox" value="${codeClassInfo.description}"  required="true" />
                                </td>
                            </tr>
                            <tr>
                                <td class="labelTd">是否有效:</td>
                                <td>
                                    <input class="easyui-combobox" name="delTag" data-options="
                                               validType: 'selectValueRequired',
                                               required: true,
                                               valueField: 'id',
                                               textField: 'text',
                                               url:'<c:url value="/sys/queryComboboxByDict.html?type=DEL_TAG_TYPE&selected=${codeClassInfo.delTag}" />',
                                               panelHeight:'auto',
                                               onLoadError: function (httpRequest) {
                                                    displayJsonError(httpRequest);
                                               }"/>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div data-options="region:'south',border:false" style="text-align:right;padding:5px 0;">
                    <a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="updateSubmit();">更新</a>
                    <a class="easyui-linkbutton" iconCls="icon-cancel"  href="javascript:void(0)" onclick="closeWindow();">取消</a>
                </div>
            </form>
        </div>
    </body>
</html>
